package hu.dobrosi.util.io;

import java.io.IOException;
import java.io.OutputStream;

public class BufferedOutputStreamWriter {

	private OutputStream out;

	public BufferedOutputStreamWriter(OutputStream out) throws IOException {
		this.out = out;
	}

	public void write(byte b) throws IOException {
		out.write(b);
	}
	public void write(byte[] b, int off, int len) throws IOException {
		out.write(b, off, len);
	}

	public void write(byte[] b) throws IOException {
		out.write(b);
	}

	public void writeLine(String line) throws IOException {
		out.write((line + "\n").getBytes());
	}

	public void flush() throws IOException {
		out.flush();
	}
	
	public void close() throws IOException {
		out.close();
	}

}
